extends ../../layout

block content
    .container
        .panel.panel-default
            .panel-heading.clearfix
                h3.panel-title.pull-left #{search}
            .panel-body
                .row
                    each movie in movies
                        .col-md-3.text-center
                            a(href='/movie/detail/#{movie._id}')
                                img(src='#{movie.poster}', alt='#{movie.name}', width='200px', height='300px')
                                h4 #{movie.name}